<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.staticfile.org/angular.js/1.4.6/angular.min.js"></script>
    <script>
        //定义一个模块
        var app = angular.module('module',[]);
        //用模块创建一个controller
        app.controller('dome5controller',function ($scope) {
            //创建一个方法
            $scope.getaData=function(){
                //使用$http向后台发送请求
                $http.get('data.json').success(function (data) {
                    $scope.list=data;
                });
            }

        });
    </script>
</head>
<body>
<h3>angularjs的循环输出$http内置对象</h3>
    <div ng-app="module" ng-controller="dome5controller" ng-init="getData()">
        <div ng-repeat="i in list">
            我叫{{i.name}}今年{{i.sex}}家住{{i.address}}
        </div>
    </div>
</body>
</html>